home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Web Star/List Star - Eve…he Ultimate Internet Site
/
StarNine Internet Pubisher (Web Star and List Star)(StarNine)(1995).iso
/
Extras
/
Scripting Solutions
/
Using Perl with WebSTAR
< prev
Wrap
Text File
|
1995-06-26
|
2KB
|
53 lines
<html>
<head>
<title>Using Perl with WebSTAR</title>
</head>
<body>
<h1>Using Perl with MacHTTP</h1>
In order to use perl scripts with MacHTTP, you need two things, the
MacPerl application itself, and the MacPerl CGI applet for use with MacHTTP.
The MacPerl application can be found on the major Mac archives, including:
<ul>
<li><a href=ftp://archive.umich.edu/development/languages/macperl4.13.sit.hqx>
ftp://archive.umich.edu/development/languages/macperl4.13.sit.hqx</a>
<li><a
href=ftp://wuarchive.wustl.edu/systems/mac/umich.edu/development/languages/macperl4.13.sit.hqx>
ftp://wuarchive.wustl.edu/systems/mac/umich.edu/development/languages/macperl4.13.sit.hqx</a>
<li><a
href=ftp://src.doc.ic.ac.uk/computing/systems/mac/development/languages/macperl4.13.sit.hqx>
ftp://src.doc.ic.ac.uk/computing/systems/mac/development/languages/macperl4.13.sit.hqx</a>
<li><a
href=ftp://archie.au/micros/mac/umich/development/languages/macperl4.13.sit.hqx>
ftp://archie.au/micros/mac/umich/development/languages/macperl4.13.sit.hqx</a>
</ul>
You can find the CGI applet at the following URL:
<ul>
<li><a href="ftp://err.ethz.ch/pub/neeri/MacPerlBeta/PCGI.sit.hqx">
ftp://err.ethz.ch/pub/neeri/MacPerlBeta/PCGI.sit.hqx</a>
</ul>
To create your own Perl applet, you need to use ResEdit to replace to contents
of the TEXT resource in the CGI applet with your own Perl source. You should
examine the existing source first, as it shows how the arguments are passed to
your script. This applet understands both the "GET" and the "POST" methods.
<p>
With the next release of MacPerl, using ResEdit will be unnecessary, as MacPerl
itself will be able to compile CGI applets as well as regular applets.
<p>
For more information on Perl, the best resources are the Unix man pages,
and the book, <cite>Programming Perl</cite>, by Randal Schwartz, and
Larry Wall, the author of Perl. Another good source is the
<a href=http://www.cis.ufl.edu/perl/>Perl WWW Site</a>.
<p>
For more information on CGI, see <a
href=http://hoohoo.ncsa.uiuc.edu/cgi/overview.html>
The Common Gateway Interface</a> on NCSA's server.
<hr>
<a href=http://www-cs-students.stanford.edu/~atwood/bio.html>sra</a>
October 10, 1994
</body>
</html>